import { request } from "@/utils/reuqest"

// 登录接口封装
export const loginAPI = (data: object) => {
  // 返回 Promise
  // return request('/park/login', 'POST', data)
  return request<{ token: string }>('/park/login', 'POST', data)
}
